home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of Shareware
/
Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso
/
mac
/
ZIPPED
/
DOS
/
UTILITY
/
CHP.ZIP
/
CHP.DOC
next >
Wrap
Text File
|
1992-08-21
|
7KB
|
241 lines
CHP, to chip a large file into pieces.
Copyright (c) 1988, 1992 , by Luther J. Woodrum.
All rights reserved.
Introduction
------------
CHP copies a file to diskettes, using only the space available
on each disk, and requires no special formatting or other
operations.
CHP suffixes each of the files thus produced,
starting with .0, and continuing with .1, .2, etc..
The disks can be used to restore the original file,
and can be read in in any order, unlike BACKUP and RESTORE.
CHP writes a .BAT file on the last diskette, which you
execute to reassemble the original file after you have
copied all of the pieces onto your hard drive.
CHP does not do any data compression. It assumes that
you cxan use PKZIP or other compression program to
compress your files. Typically you can run the compression
steps unattended, so you do not have to wait for the
compression program to run as part of the backup.
The goal in writing CHP is to minimize the amount of
time you have to spend waiting for the operation to
complete. That is why I did not do the compression as part
of the copy to diskettes.
Copyright Statement:
--------------------
Before we get farther, I must put in the usual words
about copyright and use.
CHP is not free software. It is copyrighted software,
and is being distributed as shareware.
I am providing it for you so you can try it out and
see if you like it.
If you like it and support me in my work, I will be able
to do more things that you may find useful in the future.
If you find it is useful to you, then you can register
your copy by sending $25 (or more, if you like) and any
comments and suggestions.
LJW (the name of my business)
36 Wildwood Drive
Poughkeepsie NY 12603
If you send me $25, then I will send you a disk
with the improved version on it, which is explained below,
and also descriptions of the other stuff I am working on.
You may not sell copies of CHP for profit.
You can make as many copies as you want for your own
backup purposes, your also encouraged to pass out copies
to every user you know as long as you distribute the whole
package (As long as this doc file always accompanys the chp
program). You are also encourage to upload this to any and
all Bulletin Boards).
Since I haven't gotten paid for any work since the
beginning of June 1992, obviously I'm hoping that you
will like what I have done enough so that I can contribute
more in the future.
This is the first time I have ever put anything on a
bulletin board, so I don't really know what to expect.
Using CHP:
----------
The syntax for chp is:
chp infile [outfile_prefix] [/n[k]]
infile: The input file
outfile_prefix:The prefix for the output file(s).
The default is the input file name prefix.
/n[k]: The size for the smaller files.
K means n times 1024.
If the output prefix is on the A: or B: disk, the program
will wait for you to insert the next disk and hit enter
before it continues.
Also if the output is on the A: or B: disk, the program
will determine how much space is available on the disk
before it starts writing, and will write only as much
as will fill it up, before going on to the next disk.
CHP will not erase anything that is already on any one
of the diskettes; it looks to see how much space is
available, and then only uses that much.
When the output only specifies a path, then it
uses the input file prefix for the output prefix.
enter "chp ?" for help.
If you leave out the output file prefix, then CHP will
use the prefix of the input file for the output file
prefix.
Examples: Remarks:
--------- --------
PKZIP -arp hmm.zip \hmm\*.*
Create the ZIP file for all files and
subdirectories in the HMM directory.
You can run this is batch mode while you
are doing something else.
chp c:hmm.zip a: Copy the file hmm.zip from the c disk
to the A disk. The first file written
on the A disk will be hmm.0.
The file written on the next disk on the
A drive will be hmm.1, and so on.
The last file written will be hmm.bat,
which is the file to execute in order
to put the file back together.
chp c:hmm.zip A:BLOP
The output files on A will be BLOP.0,
BLOP.1, etc..
The last file written will be BLOP.bat,
which is the file to execute in order
to put the file back together.
Putting the file back together on your hard disk:
-------------------------------------------------
First, copy all of the files from the diskettes
onto the hard drive into the directory where you
want to reassemble the original file (e.g.
copy A:HMM.* for each disk.)
One of the files will be the .BAT file (e.g HMM.BAT.)
Execute the .BAT file by entering its name.
The original file will be reassembled in the following
fashion:
The .0 file is renamed to be the target file, which
was the original file name. Be sure you don't have
a file already with the same name as the target file.
The remaining files will be copied in binary and
appended onto the target file. As each one is copied,
it will be erased from the hard drive.
The last step in the .BAT file is to erase the .BAT
file itself. This will cause an error message to
appear "Batch file missing." Just ignore this
message, as it is part of the normal operation.
When you have completed this, the target file will
have been reassembled on the hard drive (in this
example it is HMM.ZIP.)
Then use PKUNZIP -D HMM.ZIP to restore all files
and subdirectories in the original HMM directory.
Potential problems:
------------------
If you do not have all the pieces on the hard drive when
you start the .BAT file, then you will have to start over
again by copying them all onto the hard drive again.
There must be enough disk space on the hard drive to
hold the target file and another diskette worth of
data at the same time.
Items for the improved version of CHP:
------------------------------------------------
The following items are in the improved version:
o Eliminate the message "BAT File missing".
o Check to make sure that all the pieces are there
before trying to reassemble them.
o Check that there is enough space on the
hard drive to reassemble the target file
before starting to reassemble it.
o If not all of the pieces are present, be able
to reassemble some of them and go back and
do the rest later.
The following items may or may not be in the
improved version:
o Detect when the A or B drive is removed
and replaced, without having to hit enter.
o Fill the buffers while the diskette is being
changed.
o Scramble/encrypt.
o Password for scramble/encrypt.
o A delta capability when a file is sent
repeatedly.
o OS/2 support.
Depending on the response I get, some subset of these
potential items will be in the registered version.
Luther Woodrum,
August 18, 1992.